package com.jzo2o.customer.controller.open;

import com.jzo2o.common.constants.UserType;
import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.model.dto.request.LoginForWorkReqDTO;
import com.jzo2o.customer.model.dto.response.LoginResDTO;
import com.jzo2o.customer.service.ILoginService;
import com.jzo2o.customer.service.IServeProviderService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("ServeProviderController")
@RequestMapping("/customer/open")
@Api(tags = "开放接口 - 服务人员注册接口")
public class ServeProviderController {
    @Autowired
    private IServeProviderService serveProviderService;
    /**
     * 服务人员注册
     * @return
     */
    @PostMapping("/serve-provider/institution/register")
    public void register(@RequestBody InstitutionRegisterReqDTO DTO) {
        serveProviderService.registerInstitution(DTO);

    }

}
